Merge "LogEntry: Restore logic to add change tags on udp-only publish"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 12 Mar 2019 17:55:18 +0000 (17:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 12 Mar 2019 17:55:18 +0000 (17:55 +0000)
includes/logging/LogEntry.php

index 35f1a06..a154f64 100644 (file)
@@ -785,6 +785,12 @@ class ManualLogEntry extends LogEntryBase {
                                                // save RC, passing tags so they are applied there
                                                $rc->addTags( $this->getTags() );
                                                $rc->save( $rc::SEND_NONE );
+                                       } else {
+                                               $tags = $this->getTags();
+                                               if ( $tags ) {
+                                                       $revId = $this->getAssociatedRevId(); // Use null if $revId is 0
+                                                       ChangeTags::addTags( $tags, null, $revId > 0 ? $revId : null, $newId );
+                                               }
                                        }
 
                                        if ( $to === 'udp' || $to === 'rcandudp' ) {